package com.sophialex.health.record.ui.visits;


import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.part.ViewPart;

import com.sophia.common.xmlbean.pojo.tnbfollowup.GlycuresisFollowUpXMLPojo;
import com.sophialex.health.record.Messages;
import com.sophialex.health.record.common.bind.swt.annotations.AnnotionProcessor;
import com.sophialex.health.record.common.bind.swt.annotations.ListPathBindTo;
import com.sophialex.health.record.common.bind.swt.annotations.ListPathComboDataBindTo;
import com.sophialex.health.record.common.utils.ImageUtil;
//糖尿病
public abstract class DiabetesVisitsUI  extends ViewPart {
	public DiabetesVisitsUI() {
	}
	public static final String ID = "com.sophialex.health.record.ui.visits.DiabetesVisitsUI"; //$NON-NLS-1$

	private final FormToolkit toolkit = new FormToolkit(Display.getCurrent());
	
	
	protected ToolItem toolItemEdit;

	protected ToolItem toolItemDel;

	protected ToolItem toolItemSave;

	protected ToolItem toolItemCancel;

	protected ToolItem toolItemAdd;

	protected AnnotionProcessor ap = new AnnotionProcessor(this);
	
	protected GlycuresisFollowUpXMLPojo gly = new GlycuresisFollowUpXMLPojo();
	//随访信息
	@ListPathBindTo(beanPath="gly.baseInfo.personName.value")
	protected Text txtPersonName;//姓名
	@ListPathBindTo(beanPath="gly.baseInfo.fileNum.value")
	protected Text txtGRDABH;//个人档案编号
	@ListPathBindTo(UIPropName="selection",beanPath="gly.currentFollowTime.value")
	protected DateTime dtVisitTime;//本次随访时间
	@ListPathComboDataBindTo(dataPath="codeNum", beanPath="gly.followWay.value")
	protected Combo comboSFFS;//随访方式
	
	//症状
	protected Button chkTT;//头痛

	protected Button chkTY;//头晕

	protected Button chkXJ;//心悸

	protected Button chkXM;//胸闷

	protected Button chkXT;//胸痛

	protected Button chkKS;//咳嗽

	protected Button chkHT;//咳痰

	protected Button chkHXKN;//呼吸困难

	protected Button chkDY;//多饮

	protected Button chkDN;//多尿

	protected Button chkTZXJ;//体重下降

	protected Button chkFL;//乏力

	protected Button chkGJZT;//关节肿痛

	protected Button chkSLMH;////视力模糊

	protected Button chkSZMM;//四肢麻木

	protected Button chkXS;//消瘦

	protected Button chkNT;//尿痛

	protected Button chkBM;//便秘

	protected Button chkFX;//腹泻

	protected Button chkEXOT;//恶心呕吐

	protected Button chkYH;//眼花

	protected Button chkEM;//耳鸣

	protected Button chkFR;//发热

	protected Button chkBN;//鼻衄

	protected Button chkFZ;//浮肿

	protected Button chkDS;//多食

	protected Button chkPZ;//皮疹

	protected Button chkQT;//其他

	

	
	//现存主要问题
	protected Button chkQXNZZ;//缺血性卒中
	protected Button chkNCX;//脑出血
	
	protected Button chkZWMXCX;//蛛网膜下腔出血

	protected Button chkDZXNQX;//短暂性脑缺血发作

	protected Button chkQTNXGJB;//其他脑血管疾病

	protected Button chkTNBSB;//糖尿病肾病

	protected Button chkSGNSJ;//肾功能衰竭

	protected Button chkJXSY;//急性肾炎

	protected Button chkMXSY;//慢性肾炎

	protected Button chkQTSZJB;//其他肾脏疾病
	
	protected Button chkXJGS;//心肌梗死

	protected Button chkXJT;//心绞痛

	protected Button chkGZDMXYCJ;//冠状动脉血运重建

	protected Button chkCXXXLSJ;//充血性心力衰竭

	protected Button chkXQQTT;//心前区疼痛

	protected Button chkQTXZJB;//其他心脏疾病

	protected Button chkJCDML;//夹层动脉瘤

	protected Button chkDMBSJB;//动脉闭塞性疾病

	protected Button chkQTXGJB;//其他血管疾病

	protected Button chkSJXTJB;//神经系统疾病

	protected Button chkQTXTJB;//其他系统疾病
	

	
	//体征
	@ListPathBindTo(beanPath="gly.sign.bloodPressure.value")
	protected Text txtXY;//血压
	@ListPathBindTo(beanPath="gly.sign.weight.value")
	protected Text txtTZ;//体重

	//药物降糖
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.1.drugName.value")
	protected Text txtYWMC1;//药物名称1
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.1.drugName.additionDescription")
	protected Text txtCMR1;//次/日 1
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.1.usage.value")
	protected Text txtMCYL1;//每次用量
	@ListPathComboDataBindTo(beanPath="gly.glucoseDrugs.drugs.1.usage.additionDescription", dataPath = "codeNum")
	protected Combo comboMCYL1;//"mg/次", "片/次" 1
	

	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.2.drugName.value")
	protected Text txtYWMC2;//药物名称2
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.2.drugName.additionDescription")
	protected Text txtCMR2;//次/日 2
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.2.usage.value")
	protected Text txtMCYL2;//每次用量
	@ListPathComboDataBindTo(beanPath="gly.glucoseDrugs.drugs.2.usage.additionDescription", dataPath = "codeNum")
	protected Combo comboMCYL2;//"mg/次", "片/次" 2
	
	
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.3.drugName.value")
	protected Text txtYWMC3;//药物名称3
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.3.drugName.additionDescription")
	protected Text txtCMR3;//次/日 3
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.3.usage.value")
	protected Text txtMCYL3;//每次用量
	@ListPathComboDataBindTo(beanPath="gly.glucoseDrugs.drugs.3.usage.additionDescription", dataPath = "codeNum")
	protected Combo comboMCYL3;//"mg/次", "片/次" 3
	
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.4.drugName.value")
	protected Text txtYWMC4;//药物名称4
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.4.drugName.additionDescription")
	protected Text txtCMR4;//次/日 4
	@ListPathBindTo(beanPath="gly.glucoseDrugs.drugs.4.usage.value")
	protected Text txtMCYL4;//每次用量
	@ListPathComboDataBindTo(beanPath="gly.glucoseDrugs.drugs.4.usage.additionDescription", dataPath = "codeNum")
	protected Combo comboMCYL4;//"mg/次", "片/次" 3

	@ListPathComboDataBindTo(beanPath="gly.medicationSituation.value", dataPath = "codeNum")
	protected Combo comboFYQK;//服药情况
	@ListPathComboDataBindTo(beanPath="gly.untowardEffect.value", dataPath = "codeNum")
	protected Combo comboBLFY;//不良反应(有/无)
	@ListPathBindTo(beanPath="gly.untowardEffect.additionDescription")
	protected Text txtBLFY;//不良反应

//实验室检查	
	@ListPathBindTo(beanPath="gly.labExaminations.fbg.value")
	protected Text txtKFXT;//空腹血糖
	@ListPathBindTo(beanPath="gly.labExaminations.hbalc.value")
	protected Text txtTHXHDB;//糖化血红蛋白
	@ListPathBindTo(UIPropName="selection",beanPath="gly.labExaminations.checkDate.value")
	protected DateTime dtJCRQ;//检查日期

//行为特征
	@ListPathBindTo(beanPath="gly.behaviorLife.smoke.value")
	protected Text txtXYM;//吸烟  (支/天)
	@ListPathBindTo(beanPath="gly.behaviorLife.drink.value")
	protected Text txtYJ;//饮酒  (两/天)
	@ListPathComboDataBindTo(beanPath="gly.behaviorLife.bite.value", dataPath="codeNum")
	protected Combo comboYS;//饮食
	@ListPathComboDataBindTo(beanPath="gly.behaviorLife.sport.value", dataPath="codeNum")
	protected Combo comboYD;//运动
	@ListPathComboDataBindTo(beanPath="gly.behaviorLife.emotions.value", dataPath="codeNum")
	protected Combo comboBLQX;//是否有不良心理情绪
	@ListPathComboDataBindTo(beanPath="gly.behaviorLife.medicalBehavior.value", dataPath="codeNum")
	protected Combo comboZYXW;//遵医行为
	
	

//本次随访医生建议
	protected Button chkYWZL;//药物治疗

	protected Button chkKZGRLYS;// 控制高热量饮食

	protected Button chkJSXYLHJY;// 减少吸烟量或戒烟

	protected Button chkJJiu;// 戒酒

	protected Button chkJQTZ;// 减轻体重

	protected Button chkJSSSZF;// 减少膳食脂肪

	protected Button chkFSQX;// 放松情绪

	protected Button chkZZZL;// 转诊治疗

	protected Button chkYGLTYYD;// 有规律体育运动

	protected Button chkYSJYQT;// 其他
	@ListPathBindTo(beanPath="gly.advice.additionDescription")
	protected Text txtYSJYQT;// 其他(文本)

//控制情况	
	@ListPathComboDataBindTo(beanPath="gly.control.value", dataPath="codeNum")
	protected Combo comboKZQK;//控制满意","控制不满意","副作用","并发症

////随访信息	
	@ListPathComboDataBindTo(beanPath="gly.doctorName.value", dataPath="codeNum")
	protected Combo comboSFYSQM;//随访医生签名
	
	@ListPathBindTo(UIPropName="selection", beanPath="gly.nextTime.value")
	protected DateTime dtXCSFSJ;//下次随访时间

	private Composite composite_1;

	

	

	

	
	/**
	 * Create contents of the view part.
	 * 
	 * @param parent
	 */
	@Override
	public void createPartControl(Composite p) {
		
		Composite container = new Composite(p, SWT.NONE);
		container.setLayout(new FormLayout());
		createToolbar(container);
		Composite parent = new Composite(container, SWT.NONE);
		{
			FormData formData = new FormData();
			formData.top = new FormAttachment(composite_1, 0);
			formData.bottom = new FormAttachment(100, -4);
			formData.right = new FormAttachment(composite_1, 0, SWT.RIGHT);
			formData.left = new FormAttachment(composite_1, 0, SWT.LEFT);
			parent.setLayout(new FillLayout(SWT.FILL));
			parent.setLayoutData(formData);
		}
		int top_sect_space = 20;
		int row_space = 24;
		int hori_space = 10;
		int neighbor_sapce = 25;
		int sect_margin = 15;
		int left_margin = 25;
		ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
		toolkit.adapt(scrolledComposite);
		toolkit.paintBordersFor(scrolledComposite);
		scrolledComposite.setExpandHorizontal(true);
		scrolledComposite.setExpandVertical(true);

		Composite topLevelContainer = toolkit.createComposite(scrolledComposite, SWT.NONE);
		toolkit.paintBordersFor(topLevelContainer);
		topLevelContainer.setLayout(new FillLayout(SWT.HORIZONTAL));

		ScrolledForm scrldfrmNewScrolledform = toolkit.createScrolledForm(topLevelContainer);
		toolkit.paintBordersFor(scrldfrmNewScrolledform);
		scrldfrmNewScrolledform.getBody().setLayout(new FormLayout());

		Section sctBaseInfo = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctBaseInfo = new FormData();
		fd_sctBaseInfo.right = new FormAttachment(100, -sect_margin);
		fd_sctBaseInfo.top = new FormAttachment(0, 10);
		fd_sctBaseInfo.left = new FormAttachment(0, sect_margin);
		sctBaseInfo.setLayoutData(fd_sctBaseInfo);
		toolkit.paintBordersFor(sctBaseInfo);
		sctBaseInfo.setText("随访信息");// 过敏史
		sctBaseInfo.setExpanded(false);

		Composite composite = toolkit.createComposite(sctBaseInfo, SWT.NONE);
		toolkit.paintBordersFor(composite);
		sctBaseInfo.setClient(composite);
		composite.setLayout(new FormLayout());
		
		Label labName = toolkit.createLabel(composite, "姓名：", SWT.NONE);
		FormData fd_labName = new FormData();
		fd_labName.top = new FormAttachment(0, top_sect_space);
		fd_labName.left = new FormAttachment(4, 30);
		labName.setLayoutData(fd_labName);
		
		txtPersonName = toolkit.createText(composite, "", SWT.NONE);
		FormData fd_txtPersonName = new FormData();
		fd_txtPersonName.right = new FormAttachment(labName, 132, SWT.RIGHT);
		fd_txtPersonName.top = new FormAttachment(labName, 0, SWT.TOP);
		fd_txtPersonName.left = new FormAttachment(labName, hori_space);
		txtPersonName.setLayoutData(fd_txtPersonName);
		
		Label lblGRDNBH = toolkit.createLabel(composite, "个人档案编号：", SWT.NONE);
		FormData fd_lblGRDNBH = new FormData();
		fd_lblGRDNBH.top = new FormAttachment(labName, 0, SWT.TOP);
		fd_lblGRDNBH.left = new FormAttachment(txtPersonName, neighbor_sapce);
		lblGRDNBH.setLayoutData(fd_lblGRDNBH);
		
		
		
		txtGRDABH = toolkit.createText(composite, "New Text", SWT.NONE);
		txtGRDABH.setText("");
		FormData fd_txtGRDABH = new FormData();
		fd_txtGRDABH.right = new FormAttachment(lblGRDNBH, 214, SWT.RIGHT);
		fd_txtGRDABH.top = new FormAttachment(labName, 0, SWT.TOP);
		fd_txtGRDABH.left = new FormAttachment(lblGRDNBH, hori_space);
		txtGRDABH.setLayoutData(fd_txtGRDABH);

		Label lblVistitTime = toolkit.createLabel(composite, "本次随访时间：", SWT.NONE);
		FormData fd_lblVistitTime = new FormData();
		fd_lblVistitTime.top = new FormAttachment(labName, row_space);
		fd_lblVistitTime.right = new FormAttachment(labName, 0,SWT.RIGHT);
		fd_lblVistitTime.bottom = new FormAttachment(100, -10);
		lblVistitTime.setLayoutData(fd_lblVistitTime);
		
		dtVisitTime = new DateTime(composite, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtVisitTime = new FormData();
		fd_dtVisitTime.bottom = new FormAttachment(lblVistitTime, 0, SWT.BOTTOM);
		fd_dtVisitTime.right = new FormAttachment(txtPersonName, 0, SWT.RIGHT);
		fd_dtVisitTime.left = new FormAttachment(lblVistitTime, hori_space);
		dtVisitTime.setLayoutData(fd_dtVisitTime);
		toolkit.adapt(dtVisitTime);
		toolkit.paintBordersFor(dtVisitTime);
		
		Label lblVisitType = toolkit.createLabel(composite, "随访方式：", SWT.NONE);
		FormData fd_lblVisitType = new FormData();
		//fd_lblVisitType.left = new FormAttachment(dtVisitTime, neighbor_sapce);
		fd_lblVisitType.bottom = new FormAttachment(lblVistitTime, 0, SWT.BOTTOM);
		fd_lblVisitType.right = new FormAttachment(lblGRDNBH, 0, SWT.RIGHT);
		lblVisitType.setLayoutData(fd_lblVisitType);
		
		comboSFFS = new Combo(composite, SWT.READ_ONLY);
		comboSFFS.setItems(new String[] {"门诊", "家庭", "电话"});
		FormData fd_comboSFFS = new FormData();
		fd_comboSFFS.bottom = new FormAttachment(lblVistitTime, 0, SWT.BOTTOM);
		fd_comboSFFS.left = new FormAttachment(txtGRDABH, 0, SWT.LEFT);
		comboSFFS.setLayoutData(fd_comboSFFS);
		toolkit.adapt(comboSFFS);
		toolkit.paintBordersFor(comboSFFS);
		
		Section sctSymptom = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctSymptom = new FormData();
		fd_sctSymptom.right = new FormAttachment(100, -sect_margin);
		fd_sctSymptom.top = new FormAttachment(sctBaseInfo, top_sect_space, SWT.BOTTOM);
		fd_sctSymptom.left = new FormAttachment(0, sect_margin);
		sctSymptom.setLayoutData(fd_sctSymptom);
		toolkit.paintBordersFor(sctSymptom);
		sctSymptom.setText("症状");// 症状
		sctSymptom.setExpanded(false);

		Composite compSymptom = toolkit.createComposite(sctSymptom, SWT.NONE);
		toolkit.paintBordersFor(compSymptom);
		sctSymptom.setClient(compSymptom);
		compSymptom.setLayout(new FormLayout());
		
		chkTT = toolkit.createButton(compSymptom, "头痛", SWT.CHECK);//头痛
		FormData fd_chkTT = new FormData();
		fd_chkTT.top = new FormAttachment(top_sect_space);
		fd_chkTT.left = new FormAttachment(4, left_margin);
		chkTT.setLayoutData(fd_chkTT);

		chkTY = toolkit.createButton(compSymptom, "头晕", SWT.CHECK);//头晕
		FormData fd_chkTY = new FormData();
		fd_chkTY.left = new FormAttachment(chkTT, 120, SWT.LEFT);
		fd_chkTY.top = new FormAttachment(chkTT, 0, SWT.TOP);
		chkTY.setLayoutData(fd_chkTY);

		chkXJ = toolkit.createButton(compSymptom, "心悸", SWT.CHECK);//心悸
		FormData fd_chkXJ = new FormData();
		fd_chkXJ.left = new FormAttachment(chkTY, 120, SWT.LEFT);
		fd_chkXJ.top = new FormAttachment(chkTY, 0, SWT.TOP);
		chkXJ.setLayoutData(fd_chkXJ);

		chkXM = toolkit.createButton(compSymptom, "胸闷", SWT.CHECK);//胸闷
		FormData fd_chkXM = new FormData();
		fd_chkXM.left = new FormAttachment(chkXJ, 120, SWT.LEFT);
		fd_chkXM.top = new FormAttachment(chkXJ, 0, SWT.TOP);
		chkXM.setLayoutData(fd_chkXM);

		chkXT = toolkit.createButton(compSymptom, "胸痛", SWT.CHECK);//胸痛
		FormData fd_chkXT = new FormData();
		fd_chkXT.left = new FormAttachment(chkXM, 120, SWT.LEFT);
		fd_chkXT.top = new FormAttachment(chkXM, 0, SWT.TOP);
		chkXT.setLayoutData(fd_chkXT);

		chkKS = toolkit.createButton(compSymptom, "咳嗽", SWT.CHECK);//咳嗽
		FormData fd_chkKS = new FormData();
		fd_chkKS.left = new FormAttachment(chkXT, 120, SWT.LEFT);
		fd_chkKS.top = new FormAttachment(chkXT, 0, SWT.TOP);
		chkKS.setLayoutData(fd_chkKS);

		chkHT = toolkit.createButton(compSymptom, "咳痰", SWT.CHECK);//咳痰
		FormData fd_chkHT = new FormData();
		fd_chkHT.top = new FormAttachment(chkKS, 0, SWT.TOP);
		fd_chkHT.left = new FormAttachment(chkKS, 120, SWT.LEFT);
		chkHT.setLayoutData(fd_chkHT);

		
		chkHXKN = toolkit.createButton(compSymptom, "呼吸困难", SWT.CHECK);//呼吸困难
		FormData fd_chkHXKN = new FormData();
		fd_chkHXKN.left = new FormAttachment(chkTT, 0, SWT.LEFT);
		fd_chkHXKN.top = new FormAttachment(chkTT, row_space);
		chkHXKN.setLayoutData(fd_chkHXKN);

		chkDY = toolkit.createButton(compSymptom, "多饮", SWT.CHECK);//多饮
		FormData fd_chkDY = new FormData();
		fd_chkDY.left = new FormAttachment(chkTY, 0, SWT.LEFT);
		fd_chkDY.top = new FormAttachment(chkHXKN, 0, SWT.TOP);
		chkDY.setLayoutData(fd_chkDY);

		chkDN = toolkit.createButton(compSymptom, "多尿", SWT.CHECK);//多尿
		FormData fd_chkDN = new FormData();
		fd_chkDN.left = new FormAttachment(chkXJ, 0, SWT.LEFT);
		fd_chkDN.top = new FormAttachment(chkDY, 0, SWT.TOP);
		chkDN.setLayoutData(fd_chkDN);
		
		chkTZXJ = toolkit.createButton(compSymptom, "体重下降", SWT.CHECK);//体重下降
		FormData fd_chkTZXJ = new FormData();
		fd_chkTZXJ.left = new FormAttachment(chkXM, 0, SWT.LEFT);
		fd_chkTZXJ.top = new FormAttachment(chkDN, 0, SWT.TOP);
		chkTZXJ.setLayoutData(fd_chkTZXJ);
		
		chkFL = toolkit.createButton(compSymptom, "乏力", SWT.CHECK);//乏力
		FormData fd_chkFL = new FormData();
		fd_chkFL.left = new FormAttachment(chkXT, 0, SWT.LEFT);
		fd_chkFL.top = new FormAttachment(chkTZXJ, 0, SWT.TOP);
		chkFL.setLayoutData(fd_chkFL);
		
		chkGJZT = toolkit.createButton(compSymptom, "关节肿痛", SWT.CHECK);//关节肿痛
		FormData fd_chkGJZT = new FormData();
		fd_chkGJZT.left = new FormAttachment(chkKS, 0, SWT.LEFT);
		fd_chkGJZT.top = new FormAttachment(chkFL, 0, SWT.TOP);
		chkGJZT.setLayoutData(fd_chkGJZT);
		
		chkSLMH = toolkit.createButton(compSymptom, "视力模糊", SWT.CHECK);//视力模糊
		FormData fd_chkSLMH = new FormData();
		fd_chkSLMH.left = new FormAttachment(chkHT, 0, SWT.LEFT);
		fd_chkSLMH.top = new FormAttachment(chkGJZT, 0, SWT.TOP);
		chkSLMH.setLayoutData(fd_chkSLMH);
		
		chkSZMM = toolkit.createButton(compSymptom, "四肢麻木", SWT.CHECK);//四肢麻木
		FormData fd_chkSZMM = new FormData();
		fd_chkSZMM.left = new FormAttachment(chkHXKN, 0, SWT.LEFT);
		fd_chkSZMM.top = new FormAttachment(chkHXKN, row_space);
		chkSZMM.setLayoutData(fd_chkSZMM);
		
		chkXS = toolkit.createButton(compSymptom, "消瘦", SWT.CHECK);//消瘦
		FormData fd_chkXS = new FormData();
		fd_chkXS.left = new FormAttachment(chkDY, 0, SWT.LEFT);
		fd_chkXS.top = new FormAttachment(chkSZMM, 0, SWT.TOP);
		chkXS.setLayoutData(fd_chkXS);
		
		chkNT = toolkit.createButton(compSymptom, "尿痛", SWT.CHECK);//尿痛
		FormData fd_chkNT = new FormData();
		fd_chkNT.left = new FormAttachment(chkDN, 0, SWT.LEFT);
		fd_chkNT.top = new FormAttachment(chkXS, 0, SWT.TOP);
		chkNT.setLayoutData(fd_chkNT);
		
		chkBM = toolkit.createButton(compSymptom, "便秘", SWT.CHECK);//便秘
		FormData fd_chkBM = new FormData();
		fd_chkBM.left = new FormAttachment(chkTZXJ, 0, SWT.LEFT);
		fd_chkBM.top = new FormAttachment(chkNT, 0, SWT.TOP);
		chkBM.setLayoutData(fd_chkBM);
		
		chkFX = toolkit.createButton(compSymptom, "腹泻", SWT.CHECK);//腹泻
		FormData fd_chkFX = new FormData();
		fd_chkFX.left = new FormAttachment(chkFL, 0, SWT.LEFT);
		fd_chkFX.top = new FormAttachment(chkBM, 0, SWT.TOP);
		chkFX.setLayoutData(fd_chkFX);
		
		chkEXOT= toolkit.createButton(compSymptom, "恶心呕吐", SWT.CHECK);//恶心呕吐
		FormData fd_chkEXOT = new FormData();
		fd_chkEXOT.left = new FormAttachment(chkGJZT, 0, SWT.LEFT);
		fd_chkEXOT.top = new FormAttachment(chkFX, 0, SWT.TOP);
		chkEXOT.setLayoutData(fd_chkEXOT);
		
		chkYH= toolkit.createButton(compSymptom, "眼花", SWT.CHECK);//眼花
		FormData fd_chkYH = new FormData();
		fd_chkYH.left = new FormAttachment(chkSLMH, 0, SWT.LEFT);
		fd_chkYH.top = new FormAttachment(chkEXOT, 0, SWT.TOP);
		chkYH.setLayoutData(fd_chkYH);
		
		chkEM = toolkit.createButton(compSymptom, "耳鸣", SWT.CHECK);//耳鸣
		FormData fd_chkEM = new FormData();
		fd_chkEM.left = new FormAttachment(chkSZMM, 0, SWT.LEFT);
		fd_chkEM.top = new FormAttachment(chkSZMM, row_space);
		chkEM.setLayoutData(fd_chkEM);
		
		chkFR= toolkit.createButton(compSymptom, "发热", SWT.CHECK);//发热
		FormData fd_chkFR = new FormData();
		fd_chkFR.left = new FormAttachment(chkXS, 0, SWT.LEFT);
		fd_chkFR.top = new FormAttachment(chkEM, 0, SWT.TOP);
		chkFR.setLayoutData(fd_chkFR);
		
		chkBN = toolkit.createButton(compSymptom, "鼻衄", SWT.CHECK);//鼻衄
		FormData fd_chkBN = new FormData();
		fd_chkBN.left = new FormAttachment(chkNT, 0, SWT.LEFT);
		fd_chkBN.top = new FormAttachment(chkFR, 0, SWT.TOP);
		chkBN.setLayoutData(fd_chkBN);
		
		chkFZ = toolkit.createButton(compSymptom, "浮肿", SWT.CHECK);//浮肿
		FormData fd_chkFZ = new FormData();
		fd_chkFZ.left = new FormAttachment(chkBM, 0, SWT.LEFT);
		fd_chkFZ.top = new FormAttachment(chkBN, 0, SWT.TOP);
		chkFZ.setLayoutData(fd_chkFZ);
		
		chkDS = toolkit.createButton(compSymptom, "多食", SWT.CHECK);//多食
		FormData fd_chkDS = new FormData();
		fd_chkDS.left = new FormAttachment(chkFX, 0, SWT.LEFT);
		fd_chkDS.top = new FormAttachment(chkFZ, 0, SWT.TOP);
		chkDS.setLayoutData(fd_chkDS);
		
		chkPZ = toolkit.createButton(compSymptom, "皮疹", SWT.CHECK);//皮疹
		FormData fd_chkPZ = new FormData();
		fd_chkPZ.left = new FormAttachment(chkEXOT, 0, SWT.LEFT);
		fd_chkPZ.top = new FormAttachment(chkDS, 0, SWT.TOP);
		chkPZ.setLayoutData(fd_chkPZ);
		
		chkQT = toolkit.createButton(compSymptom, "其他", SWT.CHECK);//其他
		FormData fd_chkQT = new FormData();
		fd_chkQT.left = new FormAttachment(chkYH, 0, SWT.LEFT);
		fd_chkQT.top = new FormAttachment(chkPZ, 0, SWT.TOP);
		chkQT.setLayoutData(fd_chkQT);
		
		
		//现存主要问题
		Section sctExist = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctExist = new FormData();
		fd_sctExist.right = new FormAttachment(100, -sect_margin);
		fd_sctExist.top = new FormAttachment(sctSymptom, top_sect_space, SWT.BOTTOM);
		fd_sctExist.left = new FormAttachment(0, sect_margin);
		sctExist.setLayoutData(fd_sctExist);
		toolkit.paintBordersFor(sctExist);
		sctExist.setText("现存主要问题");// 现存主要问题
		sctExist.setExpanded(false);

		Composite compExist = toolkit.createComposite(sctExist, SWT.NONE);
		toolkit.paintBordersFor(compExist);
		sctExist.setClient(compExist);
		compExist.setLayout(new FormLayout());
		
		chkQXNZZ = toolkit.createButton(compExist, "缺血性卒中", SWT.CHECK);//缺血性卒中
		FormData fd_chkQXNZZ = new FormData();
		fd_chkQXNZZ.top = new FormAttachment(top_sect_space);
		fd_chkQXNZZ.left = new FormAttachment(4, left_margin);
		chkQXNZZ.setLayoutData(fd_chkQXNZZ);

		chkNCX = toolkit.createButton(compExist, "脑出血", SWT.CHECK);//脑出血
		FormData fd_chkNCX = new FormData();
		fd_chkNCX.left = new FormAttachment(chkQXNZZ, 120, SWT.LEFT);
		fd_chkNCX.top = new FormAttachment(chkQXNZZ, 0, SWT.TOP);
		chkNCX.setLayoutData(fd_chkNCX);

		chkZWMXCX = toolkit.createButton(compExist, "蛛网膜下腔出血", SWT.CHECK);//蛛网膜下腔出血
		FormData fd_chkZWMXCX = new FormData();
		fd_chkZWMXCX.left = new FormAttachment(chkNCX, 120, SWT.LEFT);
		fd_chkZWMXCX.top = new FormAttachment(chkNCX, 0, SWT.TOP);
		chkZWMXCX.setLayoutData(fd_chkZWMXCX);

		chkDZXNQX = toolkit.createButton(compExist, "短暂性脑缺血发作", SWT.CHECK);//短暂性脑缺血发作
		FormData fd_chkDZXNQX = new FormData();
		fd_chkDZXNQX.left = new FormAttachment(chkZWMXCX, 120, SWT.LEFT);
		fd_chkDZXNQX.top = new FormAttachment(chkZWMXCX, 0, SWT.TOP);
		chkDZXNQX.setLayoutData(fd_chkDZXNQX);

		chkQTNXGJB = toolkit.createButton(compExist, "其他脑血管疾病", SWT.CHECK);//其他脑血管疾病
		FormData fd_chkQTNXGJB = new FormData();
		fd_chkQTNXGJB.left = new FormAttachment(chkDZXNQX, 120, SWT.LEFT);
		fd_chkQTNXGJB.top = new FormAttachment(chkDZXNQX, 0, SWT.TOP);
		chkQTNXGJB.setLayoutData(fd_chkQTNXGJB);

		chkTNBSB = toolkit.createButton(compExist, "糖尿病肾病", SWT.CHECK);//糖尿病肾病
		FormData fd_chkTNBSB = new FormData();
		fd_chkTNBSB.left = new FormAttachment(chkQTNXGJB, 120, SWT.LEFT);
		fd_chkTNBSB.top = new FormAttachment(chkQTNXGJB, 0, SWT.TOP);
		chkTNBSB.setLayoutData(fd_chkTNBSB);

		chkSGNSJ = toolkit.createButton(compExist, "肾功能衰竭", SWT.CHECK);//肾功能衰竭
		FormData fd_chkSGNSJ = new FormData();
		fd_chkSGNSJ.top = new FormAttachment(chkTNBSB, 0, SWT.TOP);
		fd_chkSGNSJ.left = new FormAttachment(chkTNBSB, 120, SWT.LEFT);
		chkSGNSJ.setLayoutData(fd_chkSGNSJ);

		
		chkJXSY = toolkit.createButton(compExist, "急性肾炎", SWT.CHECK);//急性肾炎
		FormData fd_chkJXSY = new FormData();
		fd_chkJXSY.left = new FormAttachment(chkQXNZZ, 0, SWT.LEFT);
		fd_chkJXSY.top = new FormAttachment(chkQXNZZ, row_space);
		chkJXSY.setLayoutData(fd_chkJXSY);

		chkMXSY = toolkit.createButton(compExist, "慢性肾炎", SWT.CHECK);//慢性肾炎
		FormData fd_chkMXSY = new FormData();
		fd_chkMXSY.left = new FormAttachment(chkNCX, 0, SWT.LEFT);
		fd_chkMXSY.top = new FormAttachment(chkJXSY, 0, SWT.TOP);
		chkMXSY.setLayoutData(fd_chkMXSY);

		chkQTSZJB = toolkit.createButton(compExist, "其他肾脏疾病", SWT.CHECK);//其他肾脏疾病
		FormData fd_chkQTSZJB = new FormData();
		fd_chkQTSZJB.left = new FormAttachment(chkZWMXCX, 0, SWT.LEFT);
		fd_chkQTSZJB.top = new FormAttachment(chkMXSY, 0, SWT.TOP);
		chkQTSZJB.setLayoutData(fd_chkQTSZJB);
		
		chkXJGS = toolkit.createButton(compExist, "心肌梗死", SWT.CHECK);//心肌梗死
		FormData fd_chkXJGS = new FormData();
		fd_chkXJGS.left = new FormAttachment(chkDZXNQX, 0, SWT.LEFT);
		fd_chkXJGS.top = new FormAttachment(chkQTSZJB, 0, SWT.TOP);
		chkXJGS.setLayoutData(fd_chkXJGS);
		
		chkXJT = toolkit.createButton(compExist, "心绞痛", SWT.CHECK);//心绞痛
		FormData fd_chkXJT = new FormData();
		fd_chkXJT.left = new FormAttachment(chkQTNXGJB, 0, SWT.LEFT);
		fd_chkXJT.top = new FormAttachment(chkXJGS, 0, SWT.TOP);
		chkXJT.setLayoutData(fd_chkXJT);
		
		chkGZDMXYCJ = toolkit.createButton(compExist, "冠状动脉血运重建", SWT.CHECK);//冠状动脉血运重建
		FormData fd_chkGZDMXYCJ = new FormData();
		fd_chkGZDMXYCJ.left = new FormAttachment(chkTNBSB, 0, SWT.LEFT);
		fd_chkGZDMXYCJ.top = new FormAttachment(chkXJT, 0, SWT.TOP);
		chkGZDMXYCJ.setLayoutData(fd_chkGZDMXYCJ);
		
		chkCXXXLSJ = toolkit.createButton(compExist, "充血性心力衰竭", SWT.CHECK);//充血性心力衰竭
		FormData fd_chkCXXXLSJ = new FormData();
		fd_chkCXXXLSJ.left = new FormAttachment(chkSGNSJ, 0, SWT.LEFT);
		fd_chkCXXXLSJ.top = new FormAttachment(chkGZDMXYCJ, 0, SWT.TOP);
		chkCXXXLSJ.setLayoutData(fd_chkCXXXLSJ);
		
		chkXQQTT = toolkit.createButton(compExist, "心前区疼痛", SWT.CHECK);//心前区疼痛
		FormData fd_chkXQQTT = new FormData();
		fd_chkXQQTT.left = new FormAttachment(chkJXSY, 0, SWT.LEFT);
		fd_chkXQQTT.top = new FormAttachment(chkJXSY, row_space);
		chkXQQTT.setLayoutData(fd_chkXQQTT);
		
		chkQTXZJB = toolkit.createButton(compExist, "其他心脏疾病", SWT.CHECK);//其他心脏疾病
		FormData fd_chkQTXZJB = new FormData();
		fd_chkQTXZJB.left = new FormAttachment(chkMXSY, 0, SWT.LEFT);
		fd_chkQTXZJB.top = new FormAttachment(chkXQQTT, 0, SWT.TOP);
		chkQTXZJB.setLayoutData(fd_chkQTXZJB);
		
		chkJCDML = toolkit.createButton(compExist, "夹层动脉瘤", SWT.CHECK);//夹层动脉瘤
		FormData fd_chkJCDML = new FormData();
		fd_chkJCDML.left = new FormAttachment(chkQTSZJB, 0, SWT.LEFT);
		fd_chkJCDML.top = new FormAttachment(chkQTXZJB, 0, SWT.TOP);
		chkJCDML.setLayoutData(fd_chkJCDML);
		
		chkDMBSJB = toolkit.createButton(compExist, "动脉闭塞性疾病", SWT.CHECK);//动脉闭塞性疾病
		FormData fd_chkDMBSJB = new FormData();
		fd_chkDMBSJB.left = new FormAttachment(chkXJGS, 0, SWT.LEFT);
		fd_chkDMBSJB.top = new FormAttachment(chkJCDML, 0, SWT.TOP);
		chkDMBSJB.setLayoutData(fd_chkDMBSJB);
		
		chkQTXGJB = toolkit.createButton(compExist, "其他血管疾病", SWT.CHECK);//其他血管疾病
		FormData fd_chkQTXGJB = new FormData();
		fd_chkQTXGJB.left = new FormAttachment(chkXJT, 0, SWT.LEFT);
		fd_chkQTXGJB.top = new FormAttachment(chkDMBSJB, 0, SWT.TOP);
		chkQTXGJB.setLayoutData(fd_chkQTXGJB);
		
		chkSJXTJB= toolkit.createButton(compExist, "神经系统疾病", SWT.CHECK);//神经系统疾病
		FormData fd_chkSJXTJB = new FormData();
		fd_chkSJXTJB.left = new FormAttachment(chkGZDMXYCJ, 0, SWT.LEFT);
		fd_chkSJXTJB.top = new FormAttachment(chkQTXGJB, 0, SWT.TOP);
		chkSJXTJB.setLayoutData(fd_chkSJXTJB);
		
		chkQTXTJB= toolkit.createButton(compExist, "其他系统疾病", SWT.CHECK);//其他系统疾病
		FormData fd_chkQTXTJB = new FormData();
		fd_chkQTXTJB.left = new FormAttachment(chkCXXXLSJ, 0, SWT.LEFT);
		fd_chkQTXTJB.top = new FormAttachment(chkSJXTJB, 0, SWT.TOP);
		chkQTXTJB.setLayoutData(fd_chkQTXTJB);
		
		//体征
		Section sctTZ = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctTZ = new FormData();
		fd_sctTZ.right = new FormAttachment(100, -sect_margin);
		fd_sctTZ.top = new FormAttachment(sctExist, top_sect_space, SWT.BOTTOM);
		fd_sctTZ.left = new FormAttachment(0, sect_margin);
		sctTZ.setLayoutData(fd_sctTZ);
		toolkit.paintBordersFor(sctTZ);
		sctTZ.setText("体征");// 体征
		sctTZ.setExpanded(true);

		Composite compTZ = toolkit.createComposite(sctTZ, SWT.NONE);
		toolkit.paintBordersFor(compTZ);
		sctTZ.setClient(compTZ);
		compTZ.setLayout(new FormLayout());
		
		Label labXY = toolkit.createLabel(compTZ, "血压：", SWT.NONE);
		FormData fd_labXY = new FormData();
		fd_labXY.top = new FormAttachment(0, 10);
		fd_labXY.left = new FormAttachment(4, left_margin);
		fd_labXY.bottom = new FormAttachment(100, -10);
		labXY.setLayoutData(fd_labXY);
		
		txtXY = toolkit.createText(compTZ, "", SWT.NONE);
		FormData fd_txtXY = new FormData();
		fd_txtXY.right = new FormAttachment(labXY, 132, SWT.RIGHT);
		fd_txtXY.top = new FormAttachment(labXY, 0, SWT.TOP);
		fd_txtXY.left = new FormAttachment(labXY, hori_space);
		txtXY.setLayoutData(fd_txtXY);
		
		Label labmmHg = toolkit.createLabel(compTZ, "mmHg", SWT.NONE);
		FormData fd_labmmHg = new FormData();
		fd_labmmHg.top = new FormAttachment(labXY, 0, SWT.TOP);
		fd_labmmHg.left = new FormAttachment(txtXY, hori_space);
		labmmHg.setLayoutData(fd_labmmHg);
		
		
		Label lblTZ = toolkit.createLabel(compTZ, "体重：", SWT.NONE);//体重
		FormData fd_lblTZ = new FormData();
		fd_lblTZ.top = new FormAttachment(labmmHg, 0, SWT.TOP);
		fd_lblTZ.left = new FormAttachment(labmmHg, neighbor_sapce);
		lblTZ.setLayoutData(fd_lblTZ);
		
		txtTZ = toolkit.createText(compTZ, "", SWT.NONE);
		FormData fd_txtTZ = new FormData();
		fd_txtTZ.right = new FormAttachment(lblTZ, 214, SWT.RIGHT);
		fd_txtTZ.top = new FormAttachment(lblTZ, 0, SWT.TOP);
		fd_txtTZ.left = new FormAttachment(lblTZ, hori_space);
		txtTZ.setLayoutData(fd_txtTZ);
		
		Label lblKG = toolkit.createLabel(compTZ, "Kg", SWT.NONE);
		FormData fd_lblKG = new FormData();
		fd_lblKG.top = new FormAttachment(lblTZ, 0, SWT.TOP);
		fd_lblKG.left = new FormAttachment(txtTZ, hori_space);
		lblKG.setLayoutData(fd_lblKG);
		
		
		
		//药物降糖
		Section sctYWJT = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctYWJT = new FormData();
		fd_sctYWJT.right = new FormAttachment(100, -sect_margin);
		fd_sctYWJT.top = new FormAttachment(sctTZ, top_sect_space, SWT.BOTTOM);
		fd_sctYWJT.left = new FormAttachment(0, sect_margin);
		sctYWJT.setLayoutData(fd_sctYWJT);
		toolkit.paintBordersFor(sctYWJT);
		sctYWJT.setText("药物降糖");

		Composite compYWJT = toolkit.createComposite(sctYWJT, SWT.NONE);
		toolkit.paintBordersFor(compYWJT);
		sctYWJT.setClient(compYWJT);
		compYWJT.setLayout(new FormLayout());
		
		Label labYWMC1 = toolkit.createLabel(compYWJT, "药物名称1：", SWT.NONE);
		FormData fd_labYWMC1 = new FormData();
		fd_labYWMC1.top = new FormAttachment(0, top_sect_space);
		fd_labYWMC1.left = new FormAttachment(4, left_margin);
		labYWMC1.setLayoutData(fd_labYWMC1);
		
		txtYWMC1 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC1 = new FormData();
		fd_txtYWMC1.right = new FormAttachment(labYWMC1, 132, SWT.RIGHT);
		fd_txtYWMC1.top = new FormAttachment(labYWMC1, 0, SWT.TOP);
		fd_txtYWMC1.left = new FormAttachment(labYWMC1, hori_space);
		txtYWMC1.setLayoutData(fd_txtYWMC1);
		
		Label labYF1 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF1 = new FormData();
		fd_labYF1.top = new FormAttachment(txtYWMC1, 0, SWT.TOP);
		fd_labYF1.left = new FormAttachment(txtYWMC1, neighbor_sapce);
		labYF1.setLayoutData(fd_labYF1);
		
		txtCMR1 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR1 = new FormData();
		fd_txtCMR1.right = new FormAttachment(labYF1, 50, SWT.RIGHT);
		fd_txtCMR1.top = new FormAttachment(labYF1, 0, SWT.TOP);
		fd_txtCMR1.left = new FormAttachment(labYF1, hori_space);
		txtCMR1.setLayoutData(fd_txtCMR1);
		
		Label labCMR1 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR1 = new FormData();
		fd_labCMR1.top = new FormAttachment(txtCMR1, 0, SWT.TOP);
		fd_labCMR1.left = new FormAttachment(txtCMR1, hori_space);
		labCMR1.setLayoutData(fd_labCMR1);
		
		txtMCYL1 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL1 = new FormData();
		fd_txtMCYL1.right = new FormAttachment(labCMR1, 70, SWT.RIGHT);
		fd_txtMCYL1.top = new FormAttachment(labCMR1, 0, SWT.TOP);
		fd_txtMCYL1.left = new FormAttachment(labCMR1, neighbor_sapce);
		txtMCYL1.setLayoutData(fd_txtMCYL1);
		
		comboMCYL1 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL1.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL1 = new FormData();
		fd_comboMCYL1.bottom = new FormAttachment(labYWMC1, 4, SWT.BOTTOM);
		fd_comboMCYL1.left = new FormAttachment(txtMCYL1, hori_space);
		comboMCYL1.setLayoutData(fd_comboMCYL1);
		toolkit.adapt(comboMCYL1);
		toolkit.paintBordersFor(comboMCYL1);
		
		Label labYWMC2 = toolkit.createLabel(compYWJT, "药物名称2：", SWT.NONE);
		FormData fd_labYWMC2 = new FormData();
		fd_labYWMC2.top = new FormAttachment(labYWMC1, row_space);
		fd_labYWMC2.left = new FormAttachment(labYWMC1, 0, SWT.LEFT);
		labYWMC2.setLayoutData(fd_labYWMC2);
		
		txtYWMC2 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC2 = new FormData();
		fd_txtYWMC2.right = new FormAttachment(labYWMC2, 132, SWT.RIGHT);
		fd_txtYWMC2.top = new FormAttachment(labYWMC2, 0, SWT.TOP);
		fd_txtYWMC2.left = new FormAttachment(labYWMC2, hori_space);
		txtYWMC2.setLayoutData(fd_txtYWMC2);
		
		Label labYF2 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF2 = new FormData();
		fd_labYF2.top = new FormAttachment(txtYWMC2, 0, SWT.TOP);
		fd_labYF2.left = new FormAttachment(txtYWMC2, neighbor_sapce);
		labYF2.setLayoutData(fd_labYF2);
		
		txtCMR2 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR2 = new FormData();
		fd_txtCMR2.right = new FormAttachment(labYF2, 50, SWT.RIGHT);
		fd_txtCMR2.top = new FormAttachment(labYF2, 0, SWT.TOP);
		fd_txtCMR2.left = new FormAttachment(labYF2, hori_space);
		txtCMR2.setLayoutData(fd_txtCMR2);
		
		Label labCMR2 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR2 = new FormData();
		fd_labCMR2.top = new FormAttachment(txtCMR2, 0, SWT.TOP);
		fd_labCMR2.left = new FormAttachment(txtCMR2, hori_space);
		labCMR2.setLayoutData(fd_labCMR2);
		
		txtMCYL2 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL2 = new FormData();
		fd_txtMCYL2.right = new FormAttachment(labCMR2, 70, SWT.RIGHT);
		fd_txtMCYL2.top = new FormAttachment(labCMR2, 0, SWT.TOP);
		fd_txtMCYL2.left = new FormAttachment(labCMR2, neighbor_sapce);
		txtMCYL2.setLayoutData(fd_txtMCYL2);
		
		comboMCYL2 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL2.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL2 = new FormData();
		fd_comboMCYL2.bottom = new FormAttachment(labYWMC2, 4, SWT.BOTTOM);
		fd_comboMCYL2.left = new FormAttachment(txtMCYL2, hori_space);
		comboMCYL2.setLayoutData(fd_comboMCYL2);
		toolkit.adapt(comboMCYL2);
		toolkit.paintBordersFor(comboMCYL2);
		
		Label labYWMC3 = toolkit.createLabel(compYWJT, "药物名称3：", SWT.NONE);
		FormData fd_labYWMC3 = new FormData();
		fd_labYWMC3.top = new FormAttachment(labYWMC2, row_space);
		fd_labYWMC3.left = new FormAttachment(labYWMC2, 0, SWT.LEFT);
		labYWMC3.setLayoutData(fd_labYWMC3);
		
		txtYWMC3 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC3 = new FormData();
		fd_txtYWMC3.right = new FormAttachment(labYWMC3, 132, SWT.RIGHT);
		fd_txtYWMC3.top = new FormAttachment(labYWMC3, 0, SWT.TOP);
		fd_txtYWMC3.left = new FormAttachment(labYWMC3, hori_space);
		txtYWMC3.setLayoutData(fd_txtYWMC3);
		
		Label labYF3 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF3 = new FormData();
		fd_labYF3.top = new FormAttachment(txtYWMC3, 0, SWT.TOP);
		fd_labYF3.left = new FormAttachment(txtYWMC3, neighbor_sapce);
		labYF3.setLayoutData(fd_labYF3);
		
		txtCMR3 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR3 = new FormData();
		fd_txtCMR3.right = new FormAttachment(labYF3, 50, SWT.RIGHT);
		fd_txtCMR3.top = new FormAttachment(labYF3, 0, SWT.TOP);
		fd_txtCMR3.left = new FormAttachment(labYF3, hori_space);
		txtCMR3.setLayoutData(fd_txtCMR3);
		
		Label labCMR3 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR3 = new FormData();
		fd_labCMR3.top = new FormAttachment(txtCMR3, 0, SWT.TOP);
		fd_labCMR3.left = new FormAttachment(txtCMR3, hori_space);
		labCMR3.setLayoutData(fd_labCMR3);
		
		txtMCYL3 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL3 = new FormData();
		fd_txtMCYL3.right = new FormAttachment(labCMR3, 70, SWT.RIGHT);
		fd_txtMCYL3.top = new FormAttachment(labCMR3, 0, SWT.TOP);
		fd_txtMCYL3.left = new FormAttachment(labCMR3, neighbor_sapce);
		txtMCYL3.setLayoutData(fd_txtMCYL3);
		
		comboMCYL3 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL3.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL3 = new FormData();
		fd_comboMCYL3.bottom = new FormAttachment(labYWMC3, 4, SWT.BOTTOM);
		fd_comboMCYL3.left = new FormAttachment(txtMCYL3, hori_space);
		comboMCYL3.setLayoutData(fd_comboMCYL3);
		toolkit.adapt(comboMCYL3);
		toolkit.paintBordersFor(comboMCYL3);
		
		Label labYWMC4 = toolkit.createLabel(compYWJT, "药物名称4：", SWT.NONE);
		FormData fd_labYWMC4 = new FormData();
		fd_labYWMC4.top = new FormAttachment(labYWMC3, row_space);
		fd_labYWMC4.left = new FormAttachment(labYWMC3, 0, SWT.LEFT);
		labYWMC4.setLayoutData(fd_labYWMC4);
		
		txtYWMC4 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC4 = new FormData();
		fd_txtYWMC4.right = new FormAttachment(labYWMC4, 132, SWT.RIGHT);
		fd_txtYWMC4.top = new FormAttachment(labYWMC4, 0, SWT.TOP);
		fd_txtYWMC4.left = new FormAttachment(labYWMC4, hori_space);
		txtYWMC4.setLayoutData(fd_txtYWMC4);
		
		Label labYF4 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF4 = new FormData();
		fd_labYF4.top = new FormAttachment(txtYWMC4, 0, SWT.TOP);
		fd_labYF4.left = new FormAttachment(txtYWMC4, neighbor_sapce);
		labYF4.setLayoutData(fd_labYF4);
		
		txtCMR4 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR4 = new FormData();
		fd_txtCMR4.right = new FormAttachment(labYF4, 50, SWT.RIGHT);
		fd_txtCMR4.top = new FormAttachment(labYF4, 0, SWT.TOP);
		fd_txtCMR4.left = new FormAttachment(labYF4, hori_space);
		txtCMR4.setLayoutData(fd_txtCMR4);
		
		Label labCMR4 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR4 = new FormData();
		fd_labCMR4.top = new FormAttachment(txtCMR4, 0, SWT.TOP);
		fd_labCMR4.left = new FormAttachment(txtCMR4, hori_space);
		labCMR4.setLayoutData(fd_labCMR4);
		
		txtMCYL4 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL4 = new FormData();
		fd_txtMCYL4.right = new FormAttachment(labCMR4, 70, SWT.RIGHT);
		fd_txtMCYL4.top = new FormAttachment(labCMR4, 0, SWT.TOP);
		fd_txtMCYL4.left = new FormAttachment(labCMR4, neighbor_sapce);
		txtMCYL4.setLayoutData(fd_txtMCYL4);
		
		comboMCYL4 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL4.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL4 = new FormData();
		fd_comboMCYL4.bottom = new FormAttachment(labYWMC4, 4, SWT.BOTTOM);
		fd_comboMCYL4.left = new FormAttachment(txtMCYL4, hori_space);
		comboMCYL4.setLayoutData(fd_comboMCYL4);
		toolkit.adapt(comboMCYL4);
		toolkit.paintBordersFor(comboMCYL4);
		
		Label labFYQK = toolkit.createLabel(compYWJT, "服药情况：", SWT.NONE);
		FormData fd_labFYQK = new FormData();
		fd_labFYQK.top = new FormAttachment(labYWMC4, row_space);
		fd_labFYQK.right = new FormAttachment(labYWMC4, 0, SWT.RIGHT);
		labFYQK.setLayoutData(fd_labFYQK);
		
		comboFYQK = new Combo(compYWJT, SWT.READ_ONLY);
		comboFYQK.setItems(new String[] {"规律服药","间断服药","不服药"});
		FormData fd_comboFYQK = new FormData();
		fd_comboFYQK.bottom = new FormAttachment(labFYQK, 4, SWT.BOTTOM);
		fd_comboFYQK.left = new FormAttachment(labFYQK, hori_space);
		comboFYQK.setLayoutData(fd_comboFYQK);
		toolkit.adapt(comboFYQK);
		toolkit.paintBordersFor(comboFYQK);
		
		Label labBLFY = toolkit.createLabel(compYWJT, "不良反应：", SWT.NONE);
		FormData fd_labBLFY = new FormData();
		fd_labBLFY.top = new FormAttachment(labFYQK, 0, SWT.TOP);
		fd_labBLFY.left = new FormAttachment(comboFYQK, neighbor_sapce);
		labBLFY.setLayoutData(fd_labBLFY);
		
		comboBLFY = new Combo(compYWJT, SWT.READ_ONLY);
		comboBLFY.setItems(new String[] {"无","有"});
		FormData fd_comboBLFY = new FormData();
		fd_comboBLFY.bottom = new FormAttachment(labBLFY, 4, SWT.BOTTOM);
		fd_comboBLFY.left = new FormAttachment(labBLFY, hori_space);
		comboBLFY.setLayoutData(fd_comboBLFY);
		toolkit.adapt(comboBLFY);
		toolkit.paintBordersFor(comboBLFY);
		
		txtBLFY = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtBLFY = new FormData();
		fd_txtBLFY.right = new FormAttachment(comboBLFY, 180, SWT.RIGHT);
		fd_txtBLFY.top = new FormAttachment(comboBLFY, 4, SWT.TOP);
		fd_txtBLFY.left = new FormAttachment(comboBLFY, hori_space);
		txtBLFY.setLayoutData(fd_txtBLFY);
		
		//实验室检查
		Section sctSYSJC = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctSYSJC = new FormData();
		fd_sctSYSJC.right = new FormAttachment(100, -sect_margin);
		fd_sctSYSJC.top = new FormAttachment(sctYWJT, top_sect_space, SWT.BOTTOM);
		fd_sctSYSJC.left = new FormAttachment(0, sect_margin);
		sctSYSJC.setLayoutData(fd_sctSYSJC);
		toolkit.paintBordersFor(sctSYSJC);
		sctSYSJC.setText("实验室检查");// 实验室检查
		sctSYSJC.setExpanded(true);

		Composite compSYSJC = toolkit.createComposite(sctSYSJC, SWT.NONE);
		toolkit.paintBordersFor(compSYSJC);
		sctSYSJC.setClient(compSYSJC);
		compSYSJC.setLayout(new FormLayout());
		
		Label labKFXT = toolkit.createLabel(compSYSJC, " 空腹血糖：", SWT.NONE);
		FormData fd_labKFXT = new FormData();
		fd_labKFXT.top = new FormAttachment(0, 10);
		fd_labKFXT.left = new FormAttachment(4, left_margin);
		labKFXT.setLayoutData(fd_labKFXT);
		
		txtKFXT = toolkit.createText(compSYSJC, "", SWT.NONE);
		FormData fd_txtKFXT = new FormData();
		fd_txtKFXT.right = new FormAttachment(labKFXT, 80, SWT.RIGHT);
		fd_txtKFXT.top = new FormAttachment(labKFXT, 0, SWT.TOP);
		fd_txtKFXT.left = new FormAttachment(labKFXT, hori_space);
		txtKFXT.setLayoutData(fd_txtKFXT);
		
		Label labmmol = toolkit.createLabel(compSYSJC, "mmol/L", SWT.NONE);
		FormData fd_labmmol = new FormData();
		fd_labmmol.top = new FormAttachment(txtKFXT, 0, SWT.TOP);
		fd_labmmol.left = new FormAttachment(txtKFXT, hori_space);
		labmmol.setLayoutData(fd_labmmol);
		
		
		Label lblTHXHDB = toolkit.createLabel(compSYSJC, "糖化血红蛋白：", SWT.NONE);
		FormData fd_lblTHXHDB = new FormData();
		fd_lblTHXHDB.top = new FormAttachment(labKFXT, row_space);
		fd_lblTHXHDB.right = new FormAttachment(labKFXT, 0, SWT.RIGHT);
		fd_lblTHXHDB.bottom = new FormAttachment(100, -10);
		lblTHXHDB.setLayoutData(fd_lblTHXHDB);
		
		txtTHXHDB = toolkit.createText(compSYSJC, "", SWT.NONE);
		FormData fd_txtTHXHDB = new FormData();
		fd_txtTHXHDB.right = new FormAttachment(lblTHXHDB, 80, SWT.RIGHT);
		fd_txtTHXHDB.top = new FormAttachment(lblTHXHDB, 0, SWT.TOP);
		fd_txtTHXHDB.left = new FormAttachment(lblTHXHDB, hori_space);
		txtTHXHDB.setLayoutData(fd_txtTHXHDB);
		
		Label lblPercent = toolkit.createLabel(compSYSJC, "%", SWT.NONE);
		FormData fd_lblPercent = new FormData();
		fd_lblPercent.top = new FormAttachment(txtTHXHDB, 0, SWT.TOP);
		fd_lblPercent.left = new FormAttachment(txtTHXHDB, hori_space);
		lblPercent.setLayoutData(fd_lblPercent);
		
		Label lblJCRQ = toolkit.createLabel(compSYSJC, "检查日期：", SWT.NONE);
		FormData fd_lblJCRQ = new FormData();
		fd_lblJCRQ.left = new FormAttachment(lblPercent, neighbor_sapce);
		fd_lblJCRQ.top = new FormAttachment(lblPercent, 0, SWT.TOP);
		lblJCRQ.setLayoutData(fd_lblJCRQ);
		
		dtJCRQ = new DateTime(compSYSJC, SWT.BORDER | SWT.DROP_DOWN | SWT.SHORT);
		FormData fd_dtJCRQ = new FormData();
		fd_dtJCRQ.top = new FormAttachment(lblTHXHDB, -4, SWT.TOP);
		fd_dtJCRQ.left = new FormAttachment(lblJCRQ, hori_space);
		dtJCRQ.setLayoutData(fd_dtJCRQ);
		toolkit.adapt(dtJCRQ);
		toolkit.paintBordersFor(dtJCRQ);
		
		//行为生活方式
		Section sctXWSHFS = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctXWSHFS = new FormData();
		fd_sctXWSHFS.right = new FormAttachment(100, -sect_margin);
		fd_sctXWSHFS.top = new FormAttachment(sctSYSJC, top_sect_space, SWT.BOTTOM);
		fd_sctXWSHFS.left = new FormAttachment(0, sect_margin);
		sctXWSHFS.setLayoutData(fd_sctXWSHFS);
		toolkit.paintBordersFor(sctXWSHFS);
		sctXWSHFS.setText("行为生活方式");// 行为生活方式
		sctXWSHFS.setExpanded(false);

		Composite compXWSHFS = toolkit.createComposite(sctXWSHFS, SWT.NONE);
		toolkit.paintBordersFor(compXWSHFS);
		sctXWSHFS.setClient(compXWSHFS);
		compXWSHFS.setLayout(new FormLayout());
		
		Label labXYM = toolkit.createLabel(compXWSHFS, "     吸烟：", SWT.NONE);
		FormData fd_labXYM = new FormData();
		fd_labXYM.top = new FormAttachment(0, top_sect_space);
		fd_labXYM.left = new FormAttachment(4, left_margin);
		labXYM.setLayoutData(fd_labXYM);
		
		txtXYM = toolkit.createText(compXWSHFS, "", SWT.NONE);
		FormData fd_txtXYM = new FormData();
		fd_txtXYM.right = new FormAttachment(labXYM, 50, SWT.RIGHT);
		fd_txtXYM.top = new FormAttachment(labXYM, 0, SWT.TOP);
		fd_txtXYM.left = new FormAttachment(labXYM, hori_space);
		txtXYM.setLayoutData(fd_txtXYM);
		
		Label labZMT = toolkit.createLabel(compXWSHFS, "支/天", SWT.NONE);
		FormData fd_labZMT = new FormData();
		fd_labZMT.top = new FormAttachment(txtXYM, 0, SWT.TOP);
		fd_labZMT.left = new FormAttachment(txtXYM, hori_space);
		labZMT.setLayoutData(fd_labZMT);
		
		Label labYJ = toolkit.createLabel(compXWSHFS, "饮酒：", SWT.NONE);
		FormData fd_labYJ = new FormData();
		fd_labYJ.top = new FormAttachment(labZMT, 0, SWT.TOP);
		fd_labYJ.left = new FormAttachment(labZMT, neighbor_sapce);
		labYJ.setLayoutData(fd_labYJ);
		
		txtYJ = toolkit.createText(compXWSHFS, "", SWT.NONE);
		FormData fd_txtYJ = new FormData();
		fd_txtYJ.right = new FormAttachment(labYJ, 50, SWT.RIGHT);
		fd_txtYJ.top = new FormAttachment(labYJ, 0, SWT.TOP);
		fd_txtYJ.left = new FormAttachment(labYJ, hori_space);
		txtYJ.setLayoutData(fd_txtYJ);
		
		Label labLMT = toolkit.createLabel(compXWSHFS, "两/天", SWT.NONE);
		FormData fd_labLMT = new FormData();
		fd_labLMT.top = new FormAttachment(txtYJ, 0, SWT.TOP);
		fd_labLMT.left = new FormAttachment(txtYJ, hori_space);
		labLMT.setLayoutData(fd_labLMT);
		
		Label labYS = toolkit.createLabel(compXWSHFS, "饮食：", SWT.NONE);
		FormData fd_labYS = new FormData();
		fd_labYS.top = new FormAttachment(labLMT, 0, SWT.TOP);
		fd_labYS.left = new FormAttachment(labLMT, neighbor_sapce);
		labYS.setLayoutData(fd_labYS);
		
		comboYS = new Combo(compXWSHFS, SWT.READ_ONLY);
		comboYS.setItems(new String[] {"合理","基本合理","不合理"});
		FormData fd_comboYS = new FormData();
		fd_comboYS.bottom = new FormAttachment(labYS, 4, SWT.BOTTOM);
		fd_comboYS.left = new FormAttachment(labYS, hori_space);
		comboYS.setLayoutData(fd_comboYS);
		toolkit.adapt(comboYS);
		toolkit.paintBordersFor(comboYS);
		
		Label labYD = toolkit.createLabel(compXWSHFS, "运动：", SWT.NONE);
		FormData fd_labYD = new FormData();
		fd_labYD.top = new FormAttachment(labYS, 0, SWT.TOP);
		fd_labYD.left = new FormAttachment(comboYS, neighbor_sapce);
		labYD.setLayoutData(fd_labYD);
		
		comboYD = new Combo(compXWSHFS, SWT.READ_ONLY);
		comboYD.setItems(new String[] {"每天","不运动","偶尔","每周一次以上"});
		FormData fd_comboYD = new FormData();
		fd_comboYD.bottom = new FormAttachment(labYD, 4, SWT.BOTTOM);
		fd_comboYD.left = new FormAttachment(labYD, hori_space);
		comboYD.setLayoutData(fd_comboYD);
		toolkit.adapt(comboYD);
		toolkit.paintBordersFor(comboYD);
		
		Label labBLQX = toolkit.createLabel(compXWSHFS, "是否有不良心理情绪：", SWT.NONE);
		FormData fd_labBLQX = new FormData();
		fd_labBLQX.top = new FormAttachment(labXYM, row_space);
		fd_labBLQX.right = new FormAttachment(labXYM, 0, SWT.RIGHT);
		labBLQX.setLayoutData(fd_labBLQX);
		
		comboBLQX = new Combo(compXWSHFS, SWT.READ_ONLY);
		comboBLQX.setItems(new String[] {"有","无"});
		FormData fd_comboBLQX = new FormData();
		fd_comboBLQX.bottom = new FormAttachment(labBLQX, 4, SWT.BOTTOM);
		fd_comboBLQX.left = new FormAttachment(labBLQX, hori_space);
		comboBLQX.setLayoutData(fd_comboBLQX);
		toolkit.adapt(comboBLQX);
		toolkit.paintBordersFor(comboBLQX);
		
		Label labZYXW = toolkit.createLabel(compXWSHFS, "遵医行为：", SWT.NONE);
		FormData fd_labZYXW = new FormData();
		fd_labZYXW.top = new FormAttachment(labBLQX, 0, SWT.TOP);
		fd_labZYXW.left = new FormAttachment(comboBLQX, neighbor_sapce);
		labZYXW.setLayoutData(fd_labZYXW);
		
		comboZYXW = new Combo(compXWSHFS, SWT.READ_ONLY);
		comboZYXW.setItems(new String[] {"浪 好","一般","差"});
		FormData fd_comboZYXW = new FormData();
		fd_comboZYXW.bottom = new FormAttachment(labZYXW, 4, SWT.BOTTOM);
		fd_comboZYXW.left = new FormAttachment(labZYXW, hori_space);
		comboZYXW.setLayoutData(fd_comboZYXW);
		toolkit.adapt(comboZYXW);
		toolkit.paintBordersFor(comboZYXW);
		
		//本次随访医生建议
		Section sctYSJY = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctYSJY = new FormData();
		fd_sctYSJY.right = new FormAttachment(100, -sect_margin);
		fd_sctYSJY.top = new FormAttachment(sctXWSHFS, top_sect_space, SWT.BOTTOM);
		fd_sctYSJY.left = new FormAttachment(0, sect_margin);
		sctYSJY.setLayoutData(fd_sctYSJY);
		toolkit.paintBordersFor(sctYSJY);
		sctYSJY.setText("本次随访医生建议及控制情况");// 本次随访医生建议
		sctYSJY.setExpanded(true);

		Composite compYSJY = toolkit.createComposite(sctYSJY, SWT.NONE);
		toolkit.paintBordersFor(compYSJY);
		sctYSJY.setClient(compYSJY);
		compYSJY.setLayout(new FormLayout());
		
		Label labYSJY = toolkit.createLabel(compYSJY, " 医生建议：", SWT.NONE);
		FormData fd_labYSJY = new FormData();
		fd_labYSJY.top = new FormAttachment(0, 10);
		fd_labYSJY.left = new FormAttachment(4, left_margin);
		labYSJY.setLayoutData(fd_labYSJY);
		
		chkYWZL = toolkit.createButton(compYSJY,"药物治疗", SWT.CHECK);//药物治疗
		FormData fd_chkYWZL = new FormData();
		fd_chkYWZL.top = new FormAttachment(labYSJY, 0, SWT.TOP);
		fd_chkYWZL.left = new FormAttachment(labYSJY, hori_space);
		chkYWZL.setLayoutData(fd_chkYWZL);

		chkKZGRLYS = toolkit.createButton(compYSJY, "控制高热量饮食", SWT.CHECK);//控制高热量饮食
		FormData fd_chkKZGRLYS = new FormData();
		fd_chkKZGRLYS.top = new FormAttachment(chkYWZL, 0, SWT.TOP);
		fd_chkKZGRLYS.left = new FormAttachment(chkYWZL, 40);
		chkKZGRLYS.setLayoutData(fd_chkKZGRLYS);

		chkJSXYLHJY = toolkit.createButton(compYSJY, "减少吸烟量或戒烟", SWT.CHECK);//"减少吸烟量或戒烟
		FormData fd_chkJSXYLHJY = new FormData();
		fd_chkJSXYLHJY.top = new FormAttachment(chkYWZL, 0, SWT.TOP);
		fd_chkJSXYLHJY.left = new FormAttachment(chkKZGRLYS, 40);
		chkJSXYLHJY.setLayoutData(fd_chkJSXYLHJY);

		chkJJiu = toolkit.createButton(compYSJY, "戒酒", SWT.CHECK);//戒酒
		FormData fd_chkJJiu = new FormData();
		fd_chkJJiu.left = new FormAttachment(chkJSXYLHJY, 40);
		fd_chkJJiu.top = new FormAttachment(chkYWZL, 0, SWT.TOP);
		chkJJiu.setLayoutData(fd_chkJJiu);

		chkJQTZ = toolkit.createButton(compYSJY, "减轻体重", SWT.CHECK);//减轻体重
		FormData fd_chkJQTZ = new FormData();
		fd_chkJQTZ.left = new FormAttachment(chkJJiu, 40);
		fd_chkJQTZ.top = new FormAttachment(chkYWZL, 0, SWT.TOP);
		chkJQTZ.setLayoutData(fd_chkJQTZ);

		chkJSSSZF = toolkit.createButton(compYSJY, "减少膳食脂肪", SWT.CHECK);//减少膳食脂肪
		FormData fd_chkJSSSZF = new FormData();
		fd_chkJSSSZF.left = new FormAttachment(chkJQTZ, 40);
		fd_chkJSSSZF.top = new FormAttachment(chkYWZL, 0, SWT.TOP);
		chkJSSSZF.setLayoutData(fd_chkJSSSZF);

		chkFSQX = toolkit.createButton(compYSJY, "放松情绪", SWT.CHECK);//放松情绪
		FormData fd_chkFSQX = new FormData();
		fd_chkFSQX.left = new FormAttachment(chkYWZL, 0, SWT.LEFT);
		fd_chkFSQX.top = new FormAttachment(chkYWZL, row_space);
		chkFSQX.setLayoutData(fd_chkFSQX);

		chkZZZL = toolkit.createButton(compYSJY, "转诊治疗", SWT.CHECK);//转诊治疗
		FormData fd_chkZZZL = new FormData();
		fd_chkZZZL.left = new FormAttachment(chkKZGRLYS, 0, SWT.LEFT);
		fd_chkZZZL.top = new FormAttachment(chkFSQX, 0, SWT.TOP);
		chkZZZL.setLayoutData(fd_chkZZZL);

		chkYGLTYYD = toolkit.createButton(compYSJY, "有规律体育运动", SWT.CHECK);//有规律体育运动
		FormData fd_chkYGLTYYD = new FormData();
		fd_chkYGLTYYD.left = new FormAttachment(chkJSXYLHJY, 0, SWT.LEFT);
		fd_chkYGLTYYD.top = new FormAttachment(chkZZZL, 0, SWT.TOP);
		chkYGLTYYD.setLayoutData(fd_chkYGLTYYD);

		chkYSJYQT = toolkit.createButton(compYSJY, "其他", SWT.CHECK);//"其他"
		FormData fd_chkYSJYQT = new FormData();
		fd_chkYSJYQT.left = new FormAttachment(chkJJiu, 0, SWT.LEFT);
		fd_chkYSJYQT.top = new FormAttachment(chkYGLTYYD, 0, SWT.TOP);
		chkYSJYQT.setLayoutData(fd_chkYSJYQT);

		txtYSJYQT = toolkit.createText(compYSJY, "", SWT.NONE);
		FormData fd_txtYSJYQT = new FormData();
		fd_txtYSJYQT.left = new FormAttachment(chkYSJYQT, 8);
		fd_txtYSJYQT.top = new FormAttachment(chkYSJYQT, 0, SWT.TOP);
		fd_txtYSJYQT.right = new FormAttachment(chkJSSSZF, -20, SWT.RIGHT);
		txtYSJYQT.setLayoutData(fd_txtYSJYQT);
		
		Label labKZQK = toolkit.createLabel(compYSJY, "控制情况：", SWT.NONE);
		FormData fd_labKZQK = new FormData();
		fd_labKZQK.top = new FormAttachment(chkFSQX, row_space);
		fd_labKZQK.right = new FormAttachment(labYSJY, 0, SWT.RIGHT);
		labKZQK.setLayoutData(fd_labKZQK);
		
		comboKZQK = new Combo(compYSJY, SWT.READ_ONLY);
		comboKZQK.setItems(new String[] {"控制满意","控制不满意","副作用","并发症"});
		FormData fd_comboKZQK = new FormData();
		fd_comboKZQK.bottom = new FormAttachment(labKZQK, 4, SWT.BOTTOM);
		fd_comboKZQK.left = new FormAttachment(labKZQK, hori_space);
		comboKZQK.setLayoutData(fd_comboKZQK);
		toolkit.adapt(comboKZQK);
		toolkit.paintBordersFor(comboKZQK);
		
		//随访信息
		Section sctSFXY = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctSFXY = new FormData();
		fd_sctSFXY.right = new FormAttachment(100, -sect_margin);
		fd_sctSFXY.top = new FormAttachment(sctYSJY, top_sect_space, SWT.BOTTOM);
		fd_sctSFXY.left = new FormAttachment(0, sect_margin);
		sctSFXY.setLayoutData(fd_sctSFXY);
		toolkit.paintBordersFor(sctSFXY);
		sctSFXY.setText("操作信息");// 本次随访医生建议
		sctSFXY.setExpanded(true);

		Composite compSFXY = toolkit.createComposite(sctSFXY, SWT.NONE);
		toolkit.paintBordersFor(compSFXY);
		sctSFXY.setClient(compSFXY);
		compSFXY.setLayout(new FormLayout());
		
		Label labSFYSQM = toolkit.createLabel(compSFXY, "随访医生签名：", SWT.NONE);
		FormData fd_labSFYSQM = new FormData();
		fd_labSFYSQM.top = new FormAttachment(0, 10);
		fd_labSFYSQM.left = new FormAttachment(4, left_margin);
		fd_labSFYSQM.bottom = new FormAttachment(100,-20);
		labSFYSQM.setLayoutData(fd_labSFYSQM);
		
		comboSFYSQM = new Combo(compSFXY, SWT.READ_ONLY);
		FormData fd_comboSFYSQM = new FormData();
		fd_comboSFYSQM.bottom = new FormAttachment(labSFYSQM, 4, SWT.BOTTOM);
		fd_comboSFYSQM.left = new FormAttachment(labSFYSQM, hori_space);
		comboSFYSQM.setLayoutData(fd_comboSFYSQM);
		toolkit.adapt(comboSFYSQM);
		toolkit.paintBordersFor(comboSFYSQM);
		
		Label lblXCSFSJ = toolkit.createLabel(compSFXY, "下次随访时间：", SWT.NONE);
		FormData fd_lblXCSFSJ = new FormData();
		fd_lblXCSFSJ.left = new FormAttachment(comboSFYSQM, neighbor_sapce);
		fd_lblXCSFSJ.top = new FormAttachment(labSFYSQM, 0, SWT.TOP);
		lblXCSFSJ.setLayoutData(fd_lblXCSFSJ);
		
		dtXCSFSJ = new DateTime(compSFXY, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtXCSFSJ = new FormData();
		fd_dtXCSFSJ.top = new FormAttachment(lblXCSFSJ, -4, SWT.TOP);
		fd_dtXCSFSJ.left = new FormAttachment(lblXCSFSJ, hori_space);
		dtXCSFSJ.setLayoutData(fd_dtXCSFSJ);
		toolkit.adapt(dtXCSFSJ);
		toolkit.paintBordersFor(dtXCSFSJ);
		
		scrolledComposite.setContent(topLevelContainer);
		scrolledComposite.setMinSize(topLevelContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT));
	}
	private void createToolbar(Composite container){
		
		
			composite_1 = new Composite(container, SWT.NONE);
			composite_1.setLayout(new FillLayout(SWT.HORIZONTAL));
			{
				FormData formData = new FormData();
				formData.height = 50;
				formData.right = new FormAttachment(100);
				formData.top = new FormAttachment(0);
				formData.left = new FormAttachment(0);
				composite_1.setLayoutData(formData);
			}
			{
				ToolBar toolBar = new ToolBar(composite_1, SWT.FLAT | SWT.NONE);
				toolBar.setBackgroundImage(ImageUtil.TBBJ);
				{
					toolItemAdd = new ToolItem(toolBar, SWT.NONE);
					toolItemAdd.setText(Messages.getString("RecordUI.0")); //$NON-NLS-1$
					toolItemAdd.setImage(ImageUtil.add);
					toolItemAdd.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doAdd();
						}
					});
				}
				{
					toolItemEdit = new ToolItem(toolBar, SWT.NONE);
					toolItemEdit.setText(Messages.getString("RecordUI.1")); //$NON-NLS-1$
					toolItemEdit.setImage(ImageUtil.edit);
					toolItemEdit.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doEdit();
						}
					});
				}
				{
					toolItemDel = new ToolItem(toolBar, SWT.NONE);
					toolItemDel.setText(Messages.getString("RecordUI.2")); //$NON-NLS-1$
					toolItemDel.setImage(ImageUtil.delete);
					toolItemDel.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doDel();
						}
					});
				}
				{
					@SuppressWarnings("unused")
					ToolItem toolItem = new ToolItem(toolBar, SWT.SEPARATOR);
				}
				{
					toolItemSave = new ToolItem(toolBar, SWT.NONE);
					toolItemSave.setText(Messages.getString("RecordUI.3")); //$NON-NLS-1$
					toolItemSave.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doSave();
						}
					});
					toolItemSave.setImage(ImageUtil.save);
				}

				{
					toolItemCancel = new ToolItem(toolBar, SWT.NONE);
					toolItemCancel.setText(Messages.getString("RecordUI.4")); //$NON-NLS-1$
					toolItemCancel.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doCancel();
						}
					});
					toolItemCancel.setImage(ImageUtil.cancel);
				}
				
			}
		
	}
	public void dispose() {
		toolkit.dispose();
		super.dispose();
	}

	protected abstract void doCancel();

	protected abstract void doSave();

	protected abstract void doDel();

	protected abstract void doEdit();

	protected abstract void doAdd();

	@Override
	public void setFocus() {
		// Set the focus
	}
}
